<template>
 <div>
   <FouDialog
      :title="'添加/修改'"
      :width="'50%'"
      v-model:dialogValue="dialogValue"
    >
      <template #content>
        <div>
       <ProForm ref="dialogForm" :config="addeditConfig" :echo="echo"></ProForm>
        </div>
      </template>
      <template #footer>
        <div>
          <el-button @click="dialogValue = false">取消</el-button>
          <el-button
            type="primary"
            @click="dialogValue = false"
            color="#081F42"
            >確定</el-button
          >
        </div>
      </template>
    </FouDialog>
 </div>
</template>

<script setup>
import {ref,reactive, watch} from 'vue'
import {addeditConfig} from './index'
const dialogValue = ref(false)

const echo = ref({})
const init = (e)=>{
echo.value = e
dialogValue.value = true
}
defineExpose({
    init
})
</script>

<style scoped lang='less'>

</style>